#!/usr/bin/env python
# -*- coding: utf-8 -*-

import gi
gi.require_version('Gtk', '3.0')
from gi.repository import Gtk

win = Gtk.Window()
#~ win.connect("delete-event", Gtk.main_quit)
#~ win.show_all()
#~ Gtk.main()
style_context = win.get_style_context()
print(style_context)
print(style_context.lookup_color('bg_color')) # if this worked i'd still need to get a list of valid attributes

#~ def dump(obj):
   #~ for attr in dir(obj):
       #~ if hasattr( obj, attr ):
           #~ print( "obj.%s = %s" % (attr, getattr(obj, attr)))

#~ dump(style_context)

#~ from pprint import pprint
#~ pprint(style_context)

#~ win.connect("delete-event", Gtk.main_quit)
#~ win.show_all()
#~ Gtk.main()
#~ win.realize()
#~ settings=Gtk.Settings.get_default()

#~ colors=settings.get_property("gtk-color-scheme")
#~ colors=colors.split("\n")

#~ for color in colors:
		#~ if 'text' in color:
				#~ text_color=color.split(':')[1].strip()
				#~ print(text_color)
				#~ break